package com.bright.hxj.cwduijie.repository;

import com.bright.hxj.cwduijie.pojo.po.ContractAssets;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface ContractAssetsRepository extends JpaRepository<ContractAssets, Integer>, JpaSpecificationExecutor<ContractAssets> {

    @Query("from ContractAssets where DATA_KEY=:dataKey")
    List<ContractAssets> getAllByDATAKEY(@Param("dataKey") String dataKey);

}